package com.miya.archetype.facade.impl;

import com.alipay.sofa.runtime.api.annotation.SofaReference;
import com.alipay.sofa.runtime.api.annotation.SofaService;
import com.miya.archetype.common.facade.TradeXmlFacade;
import com.miya.archetype.common.facade.response.TradeResponse;
import com.miya.archetype.core.model.TradeModel;
import com.miya.archetype.core.service.TradeService;

@SofaService
public class TradeXmlFacadeImpl implements TradeXmlFacade {

    @SofaReference
    private TradeService tradeServiceImpl;

    @Override
    public TradeResponse getById(long id) {
        TradeModel tradeModel = tradeServiceImpl.getById(id);
        TradeResponse tradeResponse = new TradeResponse();
        tradeResponse.setId(tradeModel.getId());
        return tradeResponse;
    }
}
